from manimlib import *
from numpy import square
import numpy as np

class SquareToCircle(Scene):
    #75cfb8
    #浅绿
    #bbdfc8
    #浅黄
    #f0e5d8
    #深黄
    #ffc478
    def construct(self):
        self.camera.background_color = WHITE
        axes = Axes(
            x_range=[-3, 3, 1],
            y_range=[-3, 3, 1],
            x_length=6,
            axis_config={
                "color": BLACK,
                "numbers_to_include": np.arange(-3, 3.01, 1),
                },
            tips=False,
        )
        axes.x_axis.numbers.set_color(BLACK)
        axes.y_axis.numbers.set_color(BLACK)

        s=Square(side_length=4,color='#75cfb8').set_stroke(width=20).set_fill(color='#bbdfc8',opacity=0.5)
        c=Circle(color='#ffc478').set_stroke(width=20).set_fill(color=WHITE,opacity=1)
        self.add(s,axes)
        self.wait(1)
        self.add(c,axes)
        self.wait(1)